﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Imaging;
using System.Windows;
using System.Windows.Input;

namespace Hugo
{
    class BackgroundUIOption : UIOption
    {
        private System.Drawing.Bitmap bitmap;

        public BackgroundUIOption(string name, System.Drawing.Bitmap bitmap)
            : base(name, Util.getBitmapSource(bitmap))
        {
            // TODO: Complete member initialization
            this.bitmap = bitmap;
        }

        public override void wasSelected()
        {
            MainWindow.getInstance().bgCanvas.setBackground(bitmap);
        }

    }
}
